<div class="searchbanner" style="height: 580px;">
    <img src="/static/picture/con_banner1.jpg">
    <div class="txt">
        <h3>Search</h3>
        <form role="search" method="get" action="/en/search">
            <input type="search" id="" autocomplete="off" placeholder="Search" value="{$key?:''}" name="key" />
            <button class="fa fa-search"></button>
        </form>
        <div class="searchlist-titile">
            Search keywords —— <span>{$key?:''}</span> </div>
    </div>
</div>
<style>
    .searchbanner {
        display: block;
        overflow: hidden;
        position: relative;
    }

    .searchbanner img {
        display: block;
        width: 100%;
    }

    .searchbanner .txt {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 50px;
        z-index: 3;
    }

    .searchbanner .txt h3 {
        display: block;
        text-align: center;
        font-size: 40px;
        color: #fff;
        margin-bottom: 20px;
        text-transform: uppercase;
    }

    .searchbanner .txt form {
        display: block;
        width: 600px;
        position: relative;
        overflow: hidden;
    }

    .searchbanner .txt form input {
        display: block;
        width: 100%;
        border: 0;
        height: 50px;
        text-indent: 20px;
        font-size: 16px;
    }

    .searchbanner .txt form button {
        position: absolute;
        width: 50px;
        height: 50px;
        top: 0;
        right: 0;
        background: #1367ea;
        border: 0;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        text-align: center;
    }

    .searchbanner .searchlist-titile {
        display: block;
        overflow: hidden;
        margin: 30px 0;
        color: #fff;
        font-size: 20px;
    }

    .searchbanner .searchlist-titile span {
        display: inline-block;
        color: #1367ea;
        font-size: 20px;
    }

    input,
    button,
    select,
    textarea {
        outline: none;
    }

    .searchbanner:after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        background: #000;
        opacity: 0.6;
    }

    .pagetitle {
        color: #fff;
        font-size: 18px;
        letter-spacing: 0;
    }

    .searchlist {
        min-height: 400px;
        color: #333;
    }

    .searchlist a {
        display: block;
        overflow: hidden;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .searchlist a p {
        display: block;
        overflow: hidden;
        float: left;
        width: 20%;
    }

    .searchlist a h3 {
        display: block;
        float: right;
        width: 75%;
        overflow: hidden;
    }

    .searchlist a h3 span {
        display: block;
        color: #333;
        font-size: 20px;
    }

    .searchlist a h3 font {
        display: block;
        color: #666;
        font-size: 14px;
        margin-top: 10px;
    }

    .searchlist a:hover h3 span {
        color: #102f40;
    }

    .pyjy {
        display: block;
        overflow: hidden;
        margin-top: 50px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 10px;
    }

    .pyjy a {
        display: block;
        float: left;
        color: #666;
        font-size: 20px;
        margin-right: 50px;
        cursor: pointer;
    }

    .pyjy .active,
    .pyjy a:hover {
        color: #1367ea;
    }

    .nofoundanytihings {
        display: block;
        color: #102f40;
        letter-spacing: 0;
        font-size: 20px;
        margin: 100px 0 0 0;
    }

    .sdiv {
        display: block;
        overflow: hidden;
        margin-top: 50px;
    }
</style>

<div class="pyjy icenter">
    <a class="active">News</a>
    <a class="">Products</a>
    <a class="">Industry</a>
</div>
<div class="sdiv">
    <div class="searchlist icenter" style="display: block;">
        {empty name="news_list"}
        <div class="nofoundanytihings">No query data</div>
        {else/}
        {foreach $news_list as $news}
        <a href="{notempty name='news.titleurl'}{$news.titleurl}{else/}/en/news/{$news.pubtime|date='Y-m-d'}/{$news.id}{/notempty} ">
            <p><img src="{$news.titlepic}"></p>
            <h3>
                <span>{$news.title}</span>
                <font>{$news.pubtime|date='Y-m-d'}</font>
            </h3>
        </a>
        {/foreach}
        {/empty}
    </div>
    <div class="searchlist icenter" style="display: none;">
        <dl>
            {empty name="product_list"}
            <div class="nofoundanytihings">No query data</div>
            {else/}
            <a href="">
                <p><img src="/wp-content/uploads/2024/02/taihejin-1.jpg"></p>
                <h3>
                    <span>xxxxx</span>
                    <font>2024-02-06</font>
                </h3>
            </a>
            {/empty}
        </dl>
    </div>
    <div class="searchlist icenter" style="display: none;">
        {empty name="industry_list"}
        <div class="nofoundanytihings">No query data</div>
        {else/}
        <a href="">
            <p><img src="/wp-content/uploads/2024/02/taihejin-1.jpg"></p>
            <h3>
                <span>xxxxx</span>
                <font>2024-02-06</font>
            </h3>
        </a>
        {/empty}
    </div>
</div>

<script type="text/javascript">
    $(function () {
        $(".pyjy a").click(function () {
            var index = $(this).index();
            $(this).addClass("active").siblings().removeClass("active");
            $(".sdiv .searchlist").eq(index).fadeIn().siblings().hide();
        })
    })
</script>